package com.example.vip1.jianzaozhe;

/**
 * *******************************************************
 * Author: chinadragon
 * Time: 8/15/21 3:38 PM
 * Name:工人
 * Overview:
 * Usage:
 * *******************************************************
 */
public class Worker {

    private Mpaint mMpaint;

    /**
     * 拿到设计图纸
     * @param mpaint
     */
    public void setMpaint(Mpaint mpaint) {
        mMpaint = mpaint;
    }

    /**
     * 建筑房子
     * @return
     */
    public House buildHouse() {
        House house = new House();
        house.setColor(mMpaint.getColor());
        house.setHeight(mMpaint.getHeight());
        house.setWidth(mMpaint.getWidth());
        return house;
    }


}
